﻿@model IEnumerable<crm_data.Order>

@{
    ViewData["Title"] = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    <a asp-action="Create">Create New</a>
</p>
<table class="table">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.OrderSn)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.OrderStatus)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ProductCount)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ProductAmountTotal)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.OrderAmountTotal)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LogisticsFee)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.IsUnpackingInspection)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.IsInvoice)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.OutTradeNo)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CreateTime)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PaymentTime)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.DeliveryTime)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Remark)
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.OrderSn)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.OrderStatus)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ProductCount)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ProductAmountTotal)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.OrderAmountTotal)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LogisticsFee)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IsUnpackingInspection)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IsInvoice)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.OutTradeNo)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CreateTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.PaymentTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DeliveryTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Remark)
            </td>
            <td>
                <a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
                <a asp-action="Details" asp-route-id="@item.Id">Details</a> |
                <a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
            </td>
        </tr>
}
    </tbody>
</table>
